﻿using UnityEngine;
using System.Collections;

public class Builder_Player : MonoBehaviour {

	void Awake()
	{
		switch(XuanZeZhanJi.xuhao_Zhanji)
		{
		case 0:
			Instantiate(Resources.Load<GameObject>(SampleXml.prefabPath[0].ToString()), new Vector3(0, -4, 0), Quaternion.identity);
			break;
		case 1:
			Instantiate(Resources.Load<GameObject>(SampleXml.prefabPath[1].ToString()), new Vector3(0, -4, 0), Quaternion.identity);
			break;
		case 2:
			Instantiate(Resources.Load<GameObject>(SampleXml.prefabPath[2].ToString()), new Vector3(0, -4, 0), Quaternion.identity);
			break;
		}
	}

	void Start () {

       
	}

	void Update () {
	
	}
}
